#ifndef UCONTROLCONTAINER
#define UCONTROLCONTAINER
#include "stdafx.h"

class TControlContainer
{
private:
	std::vector<TControl*> Controls;
	int ActiveControlIndex;
	TControl* MousePosControl;
	TControl* LastClickControl;
public:
	TControlContainer();

	void Draw( );
	void MouseMove (int X, int Y, int mstate);
	void MouseDown (int X, int Y, uint8 button);
	void MouseUp   (int X, int Y, uint8 button);
	void KeyDown   (SDL_KeyboardEvent* Key);
	void KeyUp	   (SDL_KeyboardEvent* Key);
	void MouseLeave();
	
	void AddControl(TControl* control);
	TControl* GetControl(size_t index);
	TControl* ActiveControl();
};

#endif
